package com.atguigu.eduservice.feign.impl;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.feign.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName VodFileDegradeFeignClient
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/6/23
 * @Version 1.0
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {
    //远程调用失败时执行的方法
    @Override
    public R removeAlyVideo(String videoId) {
        return R.ok().message("删除一个视频失败");
    }
    //远程调用失败时执行的方法
    @Override
    public R deleteBatch(List<String> videoIds) {
        return R.ok().message("删除多个视频失败");
    }
}
